package core.auxiliar;

import java.util.Map;
import java.util.TreeMap;

public class DeclaredProcedure {
	
	private String name;
	private Map<String, TypeEnum> params;
	private TypeEnum returnType;
	private Object value;
	
	public DeclaredProcedure(String name) {
		this.name = name;
		this.params = new TreeMap<String, TypeEnum>();
		this.setReturnType(TypeEnum.NIL);
		this.setValue(null);
	}

	public String getName() {
		return name;
	}

	public Map<String, TypeEnum> getParams() {
		return params;
	}

	public void addParam(String paramName, TypeEnum paramType) {
		this.params.put(paramName, paramType);
	}

	public TypeEnum getReturnType() {
		return this.returnType;
	}

	public void setReturnType(TypeEnum returnType) {
		this.returnType = returnType;
	}

	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
}
